package org.gp.Interfaz;

import java.awt.EventQueue;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import javax.swing.SwingConstants;

import org.gp.tringes.GestorIGInicio;

import java.awt.Font;


public class IGEspera extends JDialog{

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					IGEspera dialog = new IGEspera();
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
					dialog.setModal(true);
					dialog.setResizable(false);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
	
	public IGEspera() {
		
		setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
		setBounds(100, 100, 220, 200);
		setResizable(false);
		
		//ID-258
		JLabel lblCargando = new JLabel(GestorIGInicio.getGestorIGInicio().getTexto(258));
		lblCargando.setHorizontalAlignment(SwingConstants.CENTER);
		lblCargando.setFont(new Font("Dialog", Font.PLAIN, 40));
		getContentPane().add(lblCargando, BorderLayout.NORTH);
		
		JLabel label = new JLabel("");
		label.setHorizontalAlignment(SwingConstants.CENTER);
		label.setIcon(new ImageIcon(IGInicio.class.getResource("/org/gp/Interfaz/Imagenes/Dalmata.gif")));
		getContentPane().add(label, BorderLayout.CENTER);
		
	}
	
}
